import Vue from 'vue'
import Router from 'vue-router' // 导入

Vue.use(Router) // 加载

export default new Router({ // 导出
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home,
      children: [
        {
          path: '/',
          name: 'index',
          component: Index,
        }
      ]
    }
  ]
});
